home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13011 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  53 lines

  1. Path: mother.usf.edu!news
  2. From: Chris Frenck <cfrenck@soleil.acomp.usf.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: Please HELP with struct and linked list
  5. Date: Wed, 03 Apr 1996 18:40:10 -0500
  6. Organization: University of South Florida
  7. Message-ID: <31630C5A.53E6@soleil.acomp.usf.edu>
  8. NNTP-Posting-Host: ppp115.cfr.usf.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 3.0B2 (Win95; I)
  13.  
  14. Could anyone PLEASE help me. I am having a great deal of difficulty 
  15. understanding the concepts of the following.
  16.  
  17. struct Class
  18. {
  19.   char prefix;
  20.   char number;
  21.   char instructor;
  22.   char grade;
  23.   int credits;
  24.   struct Class *next; /*???*/
  25. };
  26.  
  27. struct student
  28. {
  29.   char fname;
  30.   char lname;
  31.   struct Record *next *previous;
  32.   struct Class *next_class; /*???*/
  33. };
  34.  
  35. The two main areas I am having extreme difficulties in are forming a linked 
  36. list of students, sorting the list alphabetically by last name. I also need to 
  37. add more than one class per student. If anyone could help me get over this 
  38. hurdle I would be very happy.
  39.  
  40. I am having problems with the syntax of just how to do it. Does anyone have 
  41. an example of a program that does something similar? Or could someone give me 
  42. a "skeleton" of how to do it????
  43.  
  44. I have to do many other things with this program, but cannot continue until I 
  45. figure this problem out.
  46.  
  47. PLEASE help an honest, hard-working college student out!
  48.  
  49. Sincerely,
  50.  
  51. Chris Frenck
  52. cfrenck@soleil.acomp.usf.edu
  53.